*Master do file for pilot

***define paths
global main "C:/Users/.../Replication Package/supplementary materials"

global PilotPublicData  = "${main}/data"
global OutTexTab        = "${main}/output/tables"
global Code             = "${main}/code"
global Programs         = "${main}/code/programs"

*** Required programs
local programs = "labutil estout ietoolkit distinct tabout reclink dataout texsave iefieldkit winsor"
local install = 0
if (`install'==1) { 
  foreach p in `programs' {
    ssc install `p'
  }
} 

***Command to export the latex tables
run "${Programs}/texsave_custom.do"
run "${Programs}/iebaltab.ado"
 
***Run tables
*Appendix Tables 
do "${Code}/TS1-balance-pilot-vs-fup-data.do" 
do "${Code}/TS2-method-mix.do"
do "${Code}/TS3-balance-prices-pd.do"
do "${Code}/TS4-balance-view.do"
do "${Code}/TS6-rankings.do"
do "${Code}/TS7-continuations-fup16w"
do "${Code}/TS8-QofC.do"
do "${Code}/TS9-heterogeneity-main-discount.do"
